var gutil = require('gulp-util')
  , webpack = require("webpack")
  , webpackDevConfig = require('../../webpack.dev')
  , webpackDevMiddleware = require('webpack-dev-middleware')
  , fs = require('fs')
  , path = require('path')


var compiler = webpack(webpackDevConfig)
var middleWare = webpackDevMiddleware(compiler,{
  publicPath:'/js/',
  stats:{
    chunks:false,
    assets:false,
    source:false,
    reasons:false,
    modules:false
  }
})
module.exports = function(server){
  server.use(middleWare)
}
